package trlygjj.tanruiliyigenjinjin.mapper;

import org.apache.ibatis.annotations.Param;
import trlygjj.tanruiliyigenjinjin.domain.ProfessionalStuent;
import trlygjj.tanruiliyigenjinjin.query.QueryObject;

import java.util.List;

public interface ProfessionalStuentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ProfessionalStuent record);

    ProfessionalStuent selectByPrimaryKey(Long id);

    List<ProfessionalStuent> selectAll();

    int updateByPrimaryKey(ProfessionalStuent record);

    int queryForCount(QueryObject qo);

    List<ProfessionalStuent> queryForList(QueryObject qo);

    /**
     * 改变学员们的状态
     * @param professionalStudent
     */
    void updateProfessionalStuentState(ProfessionalStuent professionalStudent);

    /**
     * 在保存正式学员的时候,保存学员与缴费表的对象之间的管理
     *
     */
    void updateProfessionalStudentRoalitTuition(@Param("professionStudentId")Long professionStudentId , @Param("tuitionId")Long tuitionId);
}